﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>关闭窗口不提示的方法</title>
    <script type="text/javascript">
        function winClose(){
            window.opener = null;   // 创建当前窗口的对象为空
            window.close();         // 关闭窗口
        }
    </script>
</head>
<body>
<input type=text name="txt1" value="this is test!">
<input type=button value="转换文本" onClick="javascript:winClose()">
</body>
</html>